CMAKE_MINIMUM_REQUIRED(VERSION 3.18)
PROJECT(UT2004)

include("../configure.cmake")

set(EDITOR_SRC
    Inc/Editor.h
    Inc/Perlin.h
    Inc/UBrushBuilder.h
    Inc/UnDumpConfigCommandlet.h
    Inc/UnPrefab.h

    Src/Editor.cpp
    Src/EditorPrivate.h
    Src/TTFontImport.cpp
    Src/UAnalyzeBuild.cpp
    Src/UAnalyzeContentCommandlet.cpp
    Src/UBatchExportCommandlet.cpp
    Src/UBrushBuilder.cpp
    Src/UConformCommandlet.cpp
    Src/UContentCommandlets.cpp
    Src/UConvertMaterialCommandlet.cpp
    Src/UCutdownContentCommandlet.cpp
    Src/UDumpIntCommandlet.cpp
    Src/UDXTConvertCommandlet.cpp
    Src/UGroupRepairCommandlet.cpp
    Src/UMakeCommandlet.cpp
    Src/UMapConvertCommandlet.cpp
    Src/UMasterCommandlet.cpp
    Src/UnBsp.cpp
    Src/UnDumpConfigCommandlet.cpp
    Src/UnEdCnst.cpp
    Src/UnEdCsg.cpp
    Src/UnEdExp.cpp
    Src/UnEdFact.cpp
    Src/UnEditor.cpp
    Src/UnEdLevelStat.cpp
    Src/UnEdLevelStat.h
    Src/UnEdSrv.cpp
    Src/UnEdSrvExecImporters.cpp
    Src/UnEdTran.cpp
    Src/UnEdTran.h
    Src/UnLightwaveImporter.cpp
    Src/UnMeshEd.cpp
    Src/UnMeshLP.cpp
    Src/UnParams.cpp
    Src/UnPrefab.cpp
    Src/UnScrCom.cpp
    Src/UnScrCom.h
    Src/UnShadow.cpp
    Src/UnStaticMesh.cpp
    Src/UnTopics.cpp
    Src/UnTopics.h
    Src/UnVisi.cpp
    Src/UPkgCommandlet.cpp
    Src/UPS2ConvertCommandlet.cpp
    Src/URebuildCommandlet.cpp
    Src/USetNormalLODCommandlet.cpp
    Src/USoundLocCommandlet.cpp
    Src/UStripSourceCommandlet.cpp
    Src/UStripSourceCommandlet.cpp
    Src/USurfaceTypeCommandlet.cpp
    Src/UTextureInfoCommandlet.cpp
    Src/UTextureLODCommandlet.cpp
    Src/UTextureStripCommandlet.cpp
    Src/xEdInt.cpp
    Src/xObjExporters.cpp
    Src/xObjExporters.h
    Src/xTextureConversions.cpp
)

file(GLOB EDITOR_CLASSES CONFIGURE_DEPENDS "Classes/*.uc")

add_unreal_native_package(Editor
    CLASSES ${EDITOR_CLASSES}
    SOURCES ${EDITOR_SRC}
    DEPENDS_ON Core Engine Setup Fire
)
